package main

import (
	"0306zk/common/config"
	"0306zk/common/grpc"
	"0306zk/common/initialize"
	"0306zk/rpc/internal"
	"0306zk/rpc/mobile"
	grpc2 "google.golang.org/grpc"
)

func main() {

	config.Init()

	initialize.Nacos()
	initialize.Mysql()
	mobile.MysqlInit()
	initialize.Redis()
	initialize.ConSul()

	grpc.RegisterGrpc("127.0.0.1", 8888, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
